package com.android.superobstacleavoider;

import javax.microedition.khronos.opengles.GL10;

public class HUD {
	private TexFont m_font;
	private int m_score = 0;
	

	public void setFont(TexFont a_font) {
		m_font = a_font;
	}

	public HUD() {
	}

	public void draw(GL10 gl) {
		m_font.setScale(1.5f);
		m_font.setPolyColor(1.0f, 1.0f, 0.0f);
		m_font.printAt(gl, Integer.toString(m_score), 10, 430);
	}

	public void update(float a_dt, int a_score) {
		// update score
		m_score = a_score;
	}
}
